:root{
        --mantap:#D6A309;
  --primary:#20883A;
}

*{
    border: none;
    text-decoration:none;
    box-sizing: border-box ;
}
nav {
      background-color: #1e293b;
      color: white;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 20px;
      position: fixed;              /* ✅ membuat navbar tetap di atas */
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1000;               /* ✅ pastikan di atas elemen lain */
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    /* Tambahkan ruang di atas konten agar tidak tertutup navbar */
    main {
      padding-top: 70px;
    }
      .logo {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .logo img {
      width: 40px;
      height: 40px;
      border-radius: 50%;
    }

    .logo span {
      font-size: 20px;
      font-weight: bold;
    }

    .nav-links {
      display: flex;
      gap: 20px;
      align-items: center;
    }

    .nav-links a {
      text-decoration: none;
      color: white;
      font-weight: 500;
      transition: color 0.3s;
    }

    .nav-links a:hover {
      color: #38bdf8;
    }
     nav {
      background-color:var(--);
      color: white;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 20px;
      position: fixed;              /* ✅ membuat navbar tetap di atas */
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1000;               /* ✅ pastikan di atas elemen lain */
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    nav{
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index: 9999;
    color:white;
    background-color:var(--primary) ;
}
nav a{
    color:WHITE;
}
.navbar .dropdown-menu li a{
    text-decoration: none;
    color:black;
    transition:all .5s ease;
    font-size:15px;
}
.navbar .dropdown-menu li a:hover{
    color:white;
}
.navbar .dropdown-menu li{
    padding:10px;
}
.navbar .dropdown-menu li:hover{
    background-color:var(--primary);
} 
.navbar-nav{
    gap:20px;
}
.navbar-brand{
    font-size:3rem;
    font-weight:bold;
}
.nav-item{
    font-size:1rem;
}
.navbar-nav .nav-item a{
    font-size:17px;
}


    /* ====== DROPDOWN ====== */

    .header {
  text-align: center;
  padding: 60px 20px;
  padding-top:10rem;
}

.header h1 {
    font-family: "Raleway", sans-serif;
   font-optical-sizing: auto;
   font-style: normal;
   font-weight:bold;
  margin-bottom: 10px;
  color:var(--mantap);
  font-size:3em ;
}

.header p {
  font-size: 1.1em;
  opacity: 0.9;
}

/* === SECTION BERITA === */
.news-section {
  padding: 60px 20px;
}

.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.news-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: 20px;
  text-align: left;
}

.news-date {
  color:var(--primary);
  font-size: 0.9em;
  font-weight: 600;
}

.news-content h2 {
  font-size: 1.2em;
  color: #222;
  margin: 10px 0;
}

.news-content p {
  color: #555;
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 15px;
}

.read-more {
  text-decoration: none;
  color:var(--primary);
  font-weight: 600;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #004d40;
}
body{
  min-height: 100vh;
  background-image:url(/bg-green.jpg);
  background-repeat: no-repeat;
  background-size:cover;
  background-position: center;
}
    
@media (max-width: 768px) {
   html{
    font-size:80%;
   }
    }
    @media (max-width:986px){
      html{
        font-size: 80%;
      }
  

    }

    @media (max-width: 768px) {
  .header h1 {
    font-size: 2em;
  }
  .news-card img {
    height: 180px;
  }
}
